package com.flame.workflow.re.mapper;

import java.util.List;

import com.flame.workflow.re.controller.vo.ModelVo;
import com.flame.workflow.re.entity.Model;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * flame_workflow_re_model 流程模型定义表
 *
 * @author 吴欣童
 * @since 2023-05-04 19:54:59
 */
@Mapper
public interface ModelMapper {

    List<Model> page(ModelVo modelVo);

    void insert(Model model);

    void updateById(Model model);

    void deleteById(@Param("modelId") Long modelId, @Param("modelVersion") Integer modelVersion);

    Model findById(@Param("modelId") Long modelId, @Param("modelVersion") Integer modelVersion);

    void deleteModel(@Param("modelId")Long modelId);
}